package cn.antia.cwin;

/**
 * User: Jacob Xiao
 * Date: 2008-7-13
 * Time: 16:12:38
 */
public class DBField {
    private String fieldName; //字段名
    private String des;         //description
    private String dbType;		//DB类型
	private String javaType; //Java类型
	private String Default; //默认值
	private String modifyValue; //修改时的默认值
	private boolean isKey; //是否主键
    private boolean order;  //是否允许按此列排序
    private boolean cond;   //此列是否作为查询条件

    private Boolean allowNull; //允许为空
	private Integer maxLen; //允许长度
	private Integer minLen;	//最小长度
	private Integer decLen;		//小数位数
	private Integer min;		//最小
	private Integer max;		//最大
	private boolean general = true;		//一般字符串
	private String validType;		//有效类型/验证

    public String getValidType() {
        return validType;
    }

    public void setValidType(String validType) {
        this.validType = validType;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getDbType() {
        return dbType;
    }

    public void setDbType(String dbType) {
        this.dbType = dbType;
    }

    public String getJavaType() {
        return javaType;
    }

    public void setJavaType(String javaType) {
        this.javaType = javaType;
    }

    public String getDefault() {
        return Default;
    }

    public void setDefault(String aDefault) {
        this.Default = aDefault;
    }

    public String getModifyValue() {
        return modifyValue;
    }

    public void setModifyValue(String modifyValue) {
        this.modifyValue = modifyValue;
    }

    public boolean isKey() {
        return isKey;
    }

    public void setKey(boolean key) {
        isKey = key;
    }

    public Boolean getAllowNull() {
        return allowNull;
    }

    public void setAllowNull(Boolean allowNull) {
        this.allowNull = allowNull;
    }

    public Integer getMaxLen() {
        return maxLen;
    }

    public void setMaxLen(Integer maxLen) {
        this.maxLen = maxLen;
    }

    public Integer getMinLen() {
        return minLen;
    }

    public void setMinLen(Integer minLen) {
        this.minLen = minLen;
    }

    public Integer getDecLen() {
        return decLen;
    }

    public void setDecLen(Integer decLen) {
        this.decLen = decLen;
    }

    public Integer getMin() {
        return min;
    }

    public void setMin(Integer min) {
        this.min = min;
    }

    public Integer getMax() {
        return max;
    }

    public void setMax(Integer max) {
        this.max = max;
    }

    public boolean isGeneral() {
        return general;
    }

    public void setGeneral(boolean general) {
        this.general = general;
    }
    public String getDes() {
        return des;
    }
    public void setDes(String des) {
        this.des = des;
    }

    public boolean isOrder() {
        return order;
    }

    public void setOrder(boolean order) {
        this.order = order;
    }

    public boolean isCond() {
        return cond;
    }

    public void setCond(boolean cond) {
        this.cond = cond;
    }
}
